package lambda;

import lambda.entity.User;
import lambda.i.ItemCreatorBlankConstruct;
import lambda.i.ItemCreatorParamContruct;

/**
 * @author LIBOFEI
 * @ClassName Lambda4
 * @description
 * @date 2020/10/9 14:39
 * @Version 1.0
 **/
public class LambdaTest4 {

    public static void main(String[] args) {

        ItemCreatorBlankConstruct construct = () -> new Item();
        Item item = construct.getItem();
        System.out.println(item);

        ItemCreatorBlankConstruct creator2 = Item::new;
        Item item1 = creator2.getItem();
        System.out.println(item1);

        ItemCreatorParamContruct creator3 = Item::new;
        Item item3 = creator3.getItem(111,"李博飞",137.99);
        System.out.println(item3);


    }
}
